﻿@page
@model ClaimDto
<page-header title="声明"></page-header>
<util-card show-border="false">
    @*查询表单*@
    <partial name="Index.Query" />
    @*工具按钮*@
    <util-button class="mr-sm" color="Primary" icon="Plus" text="新建" on-click="add()"></util-button>
    <util-button id="btnSave" class="mr-sm" color="Primary" icon="Save" text="保存" on-click="save(btnSave)"></util-button>
    <util-button color="Danger" icon="Delete" text="删除" on-click="delete()"></util-button>
    @*提示语*@
    <util-alert class="my-md" type="Info" show-icon="true">
        已选择<strong class="text-primary mx-md">{{getCheckedLength()}}</strong>行
    </util-alert>
    @*表格*@
    <util-table id="tableClaim" query-param="queryParam" base-url="claim" sort="CreationTime desc">
        <util-table-column type="Checkbox"></util-table-column>
        <util-table-column type="LineNumber"></util-table-column>
        <util-table-column for="Name" is-edit="true">
            <util-textbox for="Name"></util-textbox>
        </util-table-column>
        <util-table-column for="Remark" is-edit="true">
            <util-textbox for="Remark"></util-textbox>
        </util-table-column>
        <util-table-column title="操作">
            <util-button class="mr-sm" color="Primary" shape="Circle" icon="Edit" tooltip="编辑" on-click="edit(row.id)"></util-button>
            <util-button color="Danger" shape="Circle" icon="Delete" tooltip="删除" on-click="delete(row.id)"></util-button>
        </util-table-column>
    </util-table>
</util-card>